package data.model;

import java.util.Date;

public class Truck {

    public static final int NO_ID = -1; // indique qu'aucun id n'est encore affecte

    private String id;
    private float weight;
    private float mp;
    private float length;
    private float height;
    

    //constructor
    public Truck(){}
    
    public Truck(String n){
	this.id = n;
    }

    public Truck(String s, float p, float m, float L, float h, float l){
	this.id     = s;
	this.weight  = p;
	this.mp     = m;
	this.length = L;
	this.height = h;
    }

    
    //getters
    public String getId(){
	return id;
    }
    
    public float getWeight(){
	return weight;
    }
    
    public float getMp(){
	return mp;
    }
    
    public float getLenght(){
	return length;
    }
    
    public float getHeight(){
	return height;    
    }

    //accesseurs
    public void setId(String s){
	this.id     = s;
    }
    
    public void setWeight(float p){
	this.weight = p;
    }
    
    public void setMp(float m){
	this.mp     = m;
    }
    
    public void setLength(float L){
	this.length = L;
    }
    
    public void setHeight(float h){
	this.height = h;
    }

    //methodes
}
